package cn.basic.social.api.qwtalk.channel.internal.request;

import cn.basic.social.api.exception.ApiRuleException;
import cn.basic.social.api.CommonConstants;
import cn.basic.social.api.qwtalk.BaseQwRequest;
import cn.basic.social.api.qwtalk.channel.internal.response.InternalExternalcontactListResponse;

import java.util.HashMap;
import java.util.Map;

/**
 * @ClassName InternalExternalcontactListRequest
 * @Description 客户联系-客户管理-获取客户列表。企业可通过此接口获取指定成员添加的客户列表，客户是指配置了客户联系功能的成员所添加的外部联系人
 * @Author zlf
 * @Date 2023/8/28 14:51
 */
public class InternalExternalcontactListRequest extends BaseQwRequest<InternalExternalcontactListResponse> {

    private final String requestUrl = "https://qyapi.weixin.qq.com/cgi-bin/externalcontact/list";
    private String topHttpMethod = CommonConstants.HTTP_METHOD_GET;

    public InternalExternalcontactListRequest() {
    }

    @Override
    public String getTopHttpMethod() {
        return this.topHttpMethod;
    }

    @Override
    public void setTopHttpMethod(String topHttpMethod) {
        this.topHttpMethod = topHttpMethod;
    }

    @Override
    public Map<String, String> getTextParams() {
        return new HashMap<>();
    }

    @Override
    public Class<InternalExternalcontactListResponse> getResponseClass() {
        return InternalExternalcontactListResponse.class;
    }

    @Override
    public void check() throws ApiRuleException {

    }

    @Override
    public String getTopContentType() {
        return null;
    }

    @Override
    public void setTopContentType(String topContentType) {

    }

    @Override
    public String getRequestUrl() {
        return this.requestUrl;
    }
}
